Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding rel-tag to images #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

adding rel-tag to images #5

wants to merge 1 commit into from

Conversation

zurborg
Copy link

@zurborg zurborg commented Mar 29, 2012

example usage to enable the nice lightbox:

!/path/to/image/ {lightbox}!

or to create an image group:

!/path/to/image1 {lightbox[foo]}!
!/path/to/image2 {lightbox[foo]}!

for more information see: http://lokeshdhakar.com/projects/lightbox2/

example usage to enable the nice lightbox:

!/path/to/image/ {lightbox}!

or to create an image group:

!/path/to/image1 {lightbox[foo]}!
!/path/to/image2 {lightbox[foo]}!

for more information see: http://lokeshdhakar.com/projects/lightbox2/
@bradchoate
Copy link
Owner

I'm not really interested in supporting a rel attribute for images... image markup is already kind of complicated. I would suggest using the class name method instead. You could then do this ahead of the lightbox2 initialization:

$('.lightbox').each(function() { $(this).attr('rel', 'lightbox'); });

Would that be suitable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants